package entity

import "time"

type SubAccountEntity struct {
	Id            uint
	AppId         uint // 游戏对应的应用id
	MainAccountId uint // 主账号id
	Nickname      string
	Avatar        string
	CreateTime    time.Time
	LastLoginTime time.Time // 登录时间
}

func NewSubAccountEntity(appId, mainAccountId uint, nickname, avatar string) *SubAccountEntity {
	return &SubAccountEntity{
		Id:            1,
		AppId:         appId,
		MainAccountId: mainAccountId,
		Nickname:      nickname,
		Avatar:        avatar,
	}
}
